<?php
Yii::app()->controller->pageTitle=$title;
Yii::app()->controller->breadcrumbs=array(
		$title,
);
?>
<div class="head-tool">
	<h3 class="main-title"><?php echo $title;?></h3>
	<div class="paging">
		 <?php 
		$this->widget('frontend.widgets.Pagination',
					array(
						'pages' => $page,
						'maxButtonCount'=>$itemOnPaging,
						));
		?>
	</div>
</div>
<div class="content-box">
	<?php if($total>0):?>
	<div class="items-list news-list <?php echo $csClass;?>">
	<?php foreach ($data as $key => $item):?>
		<div class="items">
			<div class="thumb">
				<img src="<?php echo CommonHelper::getImageThumbNews($item['images']);?>" />
			</div>
			<div class="intro">
				<div class="t-news"><a href="<?php echo Yii::app()->controller->createUrlArticle($item['id']);?>"><?php echo $item['title'];?></a></div>
				<?php echo $item['introtext'];?>
				<div class="date"><?php echo CommonHelper::formatDateTime();?></div>
			</div>
		</div>
	<?php endforeach;?>
	</div>
	<div class="paging">
		 <?php 
		$this->widget('frontend.widgets.Pagination',
					array(
						'pages' => $page,
						'maxButtonCount'=>$itemOnPaging,
						));
		?>
	</div>
	<?php endif;?>
</div>